package com.eobard.api.controller;

import com.eobard.service.EmployeeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author Eobard_Thawne
 * @version 1.0
 * @date 2022/7/24 -17:45
 */
@Controller
public class EmployeeController {

    @Resource
    private EmployeeService userService;

    @ResponseBody
    @GetMapping("get")
    public String get(){
        System.err.println("Api模块执行了");
        return userService.getOne();
    }

}
